<div class="Block">

    <p class="Title" style="margin-bottom:30px;">Авторы</p>

	<ul class="Users">
    	<li style="width:220px; float:left;">&nbsp;</li>
        <li style="min-width:250px; float:left; color:#282828;"><img src="images/Strelka.png" width="7" height="5" alt="" style="margin-top:8px; margin-left:90px; margin-right:5px;" />Рейтинг</li>
        <li style="min-width:210px; float:left; text-align:center; color:#282828;">Отзывы</li>
    </ul>
	</div>

<?php

foreach ($user as $key) {

    if($key->ratio!=0)
    {
       $rat= 1000/$key->ratio;
    }
 else
     {
     $rat=0;
    }
    echo '<hr class="Line" />';
    echo ' <div class="Block">
	<ul class="Users">';
    echo '<li style="width:220px; float:left;"><img src="/images/users/avatars/'.$key->user_info->avatar.'" width="32" height="32" alt="" align="middle" /><a href="#">'.$key->user_info->famely.' '.$key->user_info->name.'</a></li>';
    echo '<li style="min-width:200px; float:left; align:center; padding-left:50px;"><img src="/images/rate.png" alt="" width="112" height="9"  align="middle" style="margin-top:11px;"/><span class="Red">'.$rat.'%</span></li>';
    echo '    <li style="min-width:210px; float:left; text-align:center;" class="Red">235</li>
    </ul>
	</div>';
}

?>
    
   
    	
        
    

